#include "stdafx.h"
#include "CLogFile.h"
#include <stdio.h>

//
//CLogFile::CLogFile(void)
//{
//
//}


CLogFile::~CLogFile(void)
{
	if ( m_pLogFile != 0 )
		delete m_pLogFile;
}

void CLogFile::OpenFile(LPCTSTR strFile, bool bAppend, long lTruncate )
{
	//FILE * pFile;
	errno_t err;
  err = fopen_s (&m_pLogFile, DEF_LOG_FILE_NAME,"a+");
  if (m_pLogFile!=NULL)
  {
    fputs ("fopen example",m_pLogFile);
    fclose (m_pLogFile);
  }

}

void CLogFile::ChangeFile(LPCTSTR strFile, bool bAppend, long lTruncate )
{
}
void CLogFile::CloseFile()
{
}
//void OpenFile(LPCTSTR strFile, bool bAppend = TRUE, long lTruncate = 4096);
//	void ChangeFile(LPCTSTR strFile, bool bAppend = TRUE, long lTruncate = 4096);
//	void CloseFile();